package com.developer.platform.application.query.dto;

import cn.hutool.http.Method;
import com.developer.platform.infrastructure.enums.MenuEnum;
import com.developer.platform.infrastructure.enums.StatusEnum;
import com.veeker.core.bean.TreeNode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author ：qiaoliang
 * @date ：2020-10-20
 */
@ApiModel("资源基础信息返回模型")
public class MenuListDto extends TreeNode {

    @ApiModelProperty(value = "名称")
    private String title;
    @ApiModelProperty(value = "标识")
    private String mark;
    @ApiModelProperty(value = "url")
    private String url;
    @ApiModelProperty(value = "类型")
    private MenuEnum type;
    @ApiModelProperty(value = "图标")
    private String icon;
    @ApiModelProperty(value = "路由地址")
    private String path;
    @ApiModelProperty(value = "路由路径")
    private String component;
    @ApiModelProperty(value = "路由名称")
    private String name;
    @ApiModelProperty(value = "排序")
    private int sort;
    @ApiModelProperty(value = "状态")
    private StatusEnum status;
    @ApiModelProperty(value = "接口类型")
    private Method method;
    @ApiModelProperty(value = "备注")
    private String remark;

    public MenuListDto(Long id, Long parentId) {
        super(id, parentId);
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public MenuEnum getType() {
        return type;
    }

    public void setType(MenuEnum type) {
        this.type = type;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public StatusEnum getStatus() {
        return status;
    }

    public void setStatus(StatusEnum status) {
        this.status = status;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
